<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>


<% request.setAttribute("tab", 1); %>
<%@ include file="/header.jsp" %>

<%
	String key = (String)request.getAttribute("f_key");
%>


<fb:if-is-app-user> 
<!-- your normal code --> 

	<c:if test="${not login}">
		<p>Bundundu needs access to your Google Calendar account to read your 
		Calendar feed. To authorize Bundundu to access your account, 
		<a href='<c:out value="${requestUrl}"/>'>log in to your account</a>.</p>
	</c:if>

	<table>
		<tr>
			<td>
				<img src="http://bundundu.appspot.com/images/bundundu.JPG" width="150"/>
			</td>
			<td>
				Bundundu allows facebook users to integrate their GoogleCalendar into a 
				facebook application. It allows you to add new events, import and RSVP Facebook events,
				invite people to your events, share calendars with your facebook friends and much more!
			</td>
		</tr>
	</table>
<fb:else> 
	<fb:redirect url='http://www.facebook.com/login.php?v=1.0&api_key=<c:out value="${f_key}"/>&next=<%= url2%>'/> 
</fb:else>

</fb:if-is-app-user>

